<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-for</title>
</head>
<body>
    <div id="app">
       <ul>
           <li v-for="(item,index) in array" :key='item+index'>{{index}}:{{item}}</li>
       </ul>
       <div>
           <p v-for="(value,key,index) in obj">{{value}},{{key}},{{index}}</p>
       </div>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',//element，挂载的容器
            data:{
                array:['a','b','c','d'],
                obj:{
                    name:'albert',
                    gender:'男'
                }
            },
        })
    </script>
    
</body>
</html>